<?php 
namespace Rac\Model;
use Think\Model;
use Think\Page;
class AuthRuleModel extends Model {
	
	
	public function getAuthRuleList () {
		$modelData = M('AuthModel')->select();
		foreach ($modelData as $key=>$value) {
			$map = array('model_id'=>$value['id']);
			$data = $this->where($map)->select();
			$modelData[$key]['child'] = $data;
		}
		
		return $modelData;
	}
	
	
	
	
}


?>